package com.ruoyi.userrecords.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户对象 user
 * 
 * @author kzc
 * @date 2024-03-09
 */
public class User extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户id */
    private Integer userId;

    /** 用户名称 */
    @Excel(name = "用户名称")
    private String userName;

    /** 用户的登录密码 */
    @Excel(name = "用户的登录密码")
    private String password;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String phone;

    /** 注册的日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "注册的日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date registrationTime;

    public void setUserId(Integer userId) 
    {
        this.userId = userId;
    }

    public Integer getUserId() 
    {
        return userId;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setRegistrationTime(Date registrationTime) 
    {
        this.registrationTime = registrationTime;
    }

    public Date getRegistrationTime() 
    {
        return registrationTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("password", getPassword())
            .append("phone", getPhone())
            .append("registrationTime", getRegistrationTime())
            .toString();
    }
}
